package com.baizhi.entity;

import java.io.Serializable;
import java.util.List;

public class Address implements Serializable {
    private String addressId;
    private String addressName;
    private String local;
    private String zipCode;
    private String phone;

    private String userId;

    private List<Order> orders;

    public Address() {
    }

    public Address(String addressId, String addressName, String local, String zipCode, String phone, String userId, List<Order> orders) {
        this.addressId = addressId;
        this.addressName = addressName;
        this.local = local;
        this.zipCode = zipCode;
        this.phone = phone;
        this.userId = userId;
        this.orders = orders;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public String getLocal() {
        return local;
    }

    public void setLocal(String local) {
        this.local = local;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }


    @Override
    public String toString() {
        return "Address{" +
                "addressId='" + addressId + '\'' +
                ", addressName='" + addressName + '\'' +
                ", local='" + local + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", phone='" + phone + '\'' +
                ", userId='" + userId + '\'' +
                ", orders=" + orders +
                '}';
    }
}
